package zry.Achievement.Patent;

import lombok.Data;

import java.sql.Date;

@Data
public class Patent {
    private String a_id;
    private String p_name;
    private String p_type;
    private String p_number;
    private Date p_time;
    private String p_status;
    private String p_contribution;
    private String p_supporting;

    public Patent() {
    }

    public Patent(String achievement_id, String patent_name, String patent_type, String patent_number, Date patent_time, String patent_status, String contribution, String supporting) {
        this.a_id = achievement_id;
        this.p_name = patent_name;
        this.p_type = patent_type;
        this.p_number = patent_number;
        this.p_time = patent_time;
        this.p_status = patent_status;
        this.p_contribution = contribution;
        this.p_supporting = supporting;
    }

    @Override
    public String toString() {
        return "成果id：" + a_id +
                "\n专利名称：" + p_name +
                "\n专利类型：" + p_type +
                "\n专利号：" + p_number +
                "\n专利发布时间：" + p_time +
                "\n专利状态：" + p_status +
                "\n贡献度排名：" + p_contribution +
                "\n佐证材料：" + p_supporting;
    }
}
